using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;

namespace DockSample
{
    public partial class DummyToolbox : ToolWindow
    {
        public DummyToolbox()
        {
            InitializeComponent();
        }

        private void highOrderObjectDiagramToolStrip_Click(object sender, EventArgs e)
        {
            SystemVar.currentDiagramFlag = Diagram.HighOrderObject;
        }

        private void primitiveObjectDiagramToolStrip_Click(object sender, EventArgs e)
        {
            SystemVar.currentDiagramFlag = Diagram.PrimitiveObject;
        }

        private void staticSimpleRelationshipToolStrip_Click(object sender, EventArgs e)
        {
            SystemVar.currentDiagramFlag = Diagram.SimpleRelationship;
        }

        private void staticComplexRelationshipToolStrip_Click(object sender, EventArgs e)
        {
            SystemVar.currentDiagramFlag = Diagram.ComplexRelationship;
        }

        private void objectExternalInterfaceInToolStripLabel_Click(object sender, EventArgs e)
        {
            SystemVar.currentDiagramFlag = Diagram.ExternalInterfaceIn;
        }

        private void objectExternalInterfaceOutToolStripLabel_Click(object sender, EventArgs e)
        {
            SystemVar.currentDiagramFlag = Diagram.ExternalInterfaceOut;
        }
        //
         private void informSourceDiagramToolStripLabel_Click(object sender, EventArgs e)
        {
            SystemVar.currentDiagramFlag = Diagram.InformationSource;
        }

        private void processDiagramToolStripLabel_Click(object sender, EventArgs e)
        {
            SystemVar.currentDiagramFlag = Diagram.Process;
        }

        private void informationFlowToolStripLabel_Click(object sender, EventArgs e)
        {
            SystemVar.currentDiagramFlag = Diagram.InformationFlow;
        }

        private void dataStoreToolStripLabel_Click(object sender, EventArgs e)
        {
            SystemVar.currentDiagramFlag = Diagram.DataStore;
        }

        private void inforExternalInterfaceInToolStripLabel_Click(object sender, EventArgs e)
        {
            SystemVar.currentDiagramFlag = Diagram.ExternalInterfaceIn;
        }

        private void inforExternalInterfaceOutToolStripLabel_Click(object sender, EventArgs e)
        {
            SystemVar.currentDiagramFlag = Diagram.ExternalInterfaceOut;
        }
        //
        private void highStateDiagramToolStripLabel_Click(object sender, EventArgs e)
        {
            SystemVar.currentDiagramFlag = Diagram.HighState;
        }

        private void primitiveStateDiagramToolStripLabel_Click(object sender, EventArgs e)
        {
            SystemVar.currentDiagramFlag = Diagram.PrimitiveState;
        }

        private void stateTransformFlowToolStripLabel_Click(object sender, EventArgs e)
        {
            SystemVar.currentDiagramFlag = Diagram.StateTransitionFlow;
        }

        private void stateExternalInterfaceInToolStripLabel_Click(object sender, EventArgs e)
        {
            SystemVar.currentDiagramFlag = Diagram.ExternalInterfaceIn;
        }

        private void stateExternalInterfaceOutToolStripLabel_Click(object sender, EventArgs e)
        {
            SystemVar.currentDiagramFlag = Diagram.ExternalInterfaceOut;
        }

        //
        public void setObjectDiagramToolStrip()
        {
            this.informDiagramToolStrip.Visible = false;
            this.stateDiagramToolStrip.Visible = false;
            this.objectDiagramToolStripToolStrip.Visible = true;
        }

        public void setInformationDiagramToolStrip()
        {
            this.objectDiagramToolStripToolStrip.Visible = false;
            this.stateDiagramToolStrip.Visible = false;
            this.informDiagramToolStrip.Visible = true;
        }

        public void setStateDiagramToolStrip()
        {
            this.informDiagramToolStrip.Visible = false;
            this.objectDiagramToolStripToolStrip.Visible = false;
            this.stateDiagramToolStrip.Visible = true;
        }
       
    }
}